<%@ include file="/WEB-INF/jsp/includes.jsp" %>

<form method="POST" action="upload.htm" enctype="multipart/form-data">
    <b><spring:message code="file"/>:</b> <input type="file" name="file"/>
    <input type="submit" value="<spring:message code="attach"/>"/>
</form>
<ui>
    <c:forEach items="${attachments}" var="at">
        <li><c:out value="${at.name}" />
    </c:forEach>
</ui>
<p/>
--------------------------------------------------------
<p/>
<form method="POST" action="select.htm" >
<input type="hidden" name="confirm" value="CONFIRM" />
<b><spring:message code="message"/>:</b>
<p/>
<b><spring:message code="from"/>:
    <select name="account">
        <c:forEach items="${accounts}" var="account">
            <option value="<c:out value="${account.id}" />"><c:out value="${account.name}" /></option>
        </c:forEach>
    </select>
<p/>
<b><spring:message code="subject"/>:</b><input type="text" name="subject" value="" />
<p/>
<b>HTML:</b><input type="checkbox" name="html" value="X" /><br/>
<b><spring:message code="content"/></b>:<br/>
<textarea name="content" rows="20" cols="100" >
</textarea>
<p/>
<b><spring:message code="recepients"/>: #<c:out value="${contacts.size}" /></b>
<table>
<c:forEach items="${contacts}" var="contact">
    <tr>
        <td><input type="checkbox" name="contact" value="<c:out value="${contact.id}" />" checked="checked" /></td>
        <td><c:out value="${contact.label}" /> - </td>
        <td>
            <select name="emails">
                <option value="<c:out value="${contact.id}" />__<c:out value="${contact.email}" />" ><c:out value="${contact.email}" /></option>
                <option value="<c:out value="${contact.id}" />__<c:out value="${contact.email2}" />"><c:out value="${contact.email2}" /></option>
            </select>
        </td>
    </tr>
</c:forEach>
</table>
<p/>
<input type="submit" value="<spring:message code="submit"/>"/>
</form>